home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6574 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: cnn.exu.ericsson.se!news
  2. From: ebumow@ebu.ericsson.com (Mickey Williams 66753)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Pure Virtual Destructor Question
  5. Date: 9 Feb 1996 18:11:29 GMT
  6. Organization: Ericsson Inc.
  7. Distribution: world
  8. Message-ID: <4fg2oh$r02@cnn.exu.ericsson.se>
  9. References: <4fas7a$7ns@comet2.magicnet.net>
  10. Reply-To: ebumow@ebu.ericsson.com
  11. NNTP-Posting-Host: franklin.ebu.ericsson.se
  12.  
  13. In article 7ns@comet2.magicnet.net,  gamecox@magicnet.magicnet.net (Jody Hagins) writes:
  14. >Assume a class Foo s.t.
  15.  
  16. [snipped - class with pure virtual dtor]
  17.  
  18. >This is correct, and compiles fine.  However, I get a warning:
  19. >"foo.h", : warning: please provide an out-of-line definition:  Foo::~Foo() {}; 
  20. >hich is needed by derived classes
  21.  
  22. It's just a warning. Your compiler is probably trying to tell
  23. you that you waon't get any inline benifits from this dtor.
  24.  
  25. >
  26. >Even when I make it non inline (in foo.C) I still get it. 
  27.  
  28. Get a better compiler. Your code is well-formed.
  29.  
  30. Hope this helps
  31. ------
  32.  Mickey Williams
  33.  Author of: - Essential Visual C++ 4
  34.             - Develop a Professional Visual C++ Application in 21 Days
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.